<!DOCTYPE HTML>
<html>
<head>
    <title>首页</title>
    <meta charset="UTF-8">
    <base target='view_frame'/>
    <script type="text/javascript" src="/constructionland/constructionland-system/globalCtx.js" ></script>
    <script type="text/javascript" src="http://172.16.101.65:8080/staticrs/ext-6.2.0/ext-bootstrap.js"></script>
    <script type="text/javascript" src="http://172.16.101.65:8080/staticrs/ext-6.2.0/build/classic/locale/locale-zh_CN.js"></script>
    <link rel="stylesheet" type="text/css" href="http://172.16.101.65:8080/staticrs/ext-6.2.0\build\classic\theme-neptune\resources\theme-neptune-all.css" />
</head>

<body>
<script type="text/javascript">
    Ext.onReady(function () {
        //定义手风琴布局
        var accordion = Ext.create("Ext.panel.Panel", {
            title: "",
            layout: "accordion",
            layoutConfig: {
                animate: true
            },
            width: 250,
            minWidth: 90,
            region: "west",
            split: true,
            collapsible: true,
            items: [
                {
                    xtype: 'menu',
                    floating: false,  // usually you want this set to True (default)
                    items: [
                        {
                            text: "<h2>分析配置</h2>",
                            href: 'analyse/profile',
                            listeners: {
                                afterrender: function () {
                                    document.getElementById(this.id).childNodes[0].click()
                                }
                            }
                        },
                        {
                            text: "<h2>统计配置</h2>",
                            href: 'statistics/profile'
                        },
                        {
                            text: "<h2>平差版本</h2>",
                            href: 'adjust/version'
                        },
                        // {
                        //     text: "<h2>映射版本</h2>",
                        //     href: 'analyseMapped/profile'
                        // },
                        // {
                        //     text: "<h2>统计日志</h2>",
                        //     href: 'logMongo/profile'
                        // },
                        {
                            text: "<h2>执行记录</h2>",
                            href: 'logStatistics/profile'
                        },
                        {
                            text: "<h2>分析日志</h2>",
                            href: 'analyseFxrz/profile'
                        },
                        {
                            text: "<h2>redis锁配置</h2>",
                            href: 'redislock/profile'
                        },
                        {
                            text: "<h2>历史锁记录</h2>",
                            href: 'jsydlock/profile'
                        }
                    ]
                }
            ]
        });
        //整体布局采用border
        new Ext.Viewport({
            title: "Viewport",
            layout: "border", //这里是（border）边界布局
            defaults: {
                frame: true
            },
            items: [
                accordion,
                {
                    region: "center",
                    split: true,
                    html: '<iframe name="view_frame" height="100%" width="100%" style="border: none;"></iframe>'
                }
            ],
        });
    })

</script>
</body>
</html>